import {
  ADD_TO_CART,
  ADD_COUNTER
} from './mutation-types'

export default  {
  [ADD_COUNTER](state,oldProduct) {
    oldProduct.count += 1
  },
  [ADD_TO_CART](state,payload){
    payload.checked = true
    state.cartList.push(payload)
  }
}